<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="x-ua-compatible" content="chrome=1,ie=edge">
        <!--[if lt IE 9]>
        <script src="https://media-cache.huaweicloud.com/video/hwplayer/0.0.6/lib/video-js-5.20.5/ie8/videojs-ie8.min.js"></script>
        <![endif]-->
        <script src="https://media-cache.huaweicloud.com/video/hwplayer/0.0.6/dist/hwplayer.js"></script>
    </head>
    <body>
    <video controls id="test" width="480" height="300"
            class="video-js vjs-default-skin vjs-big-play-centered">
    </video>
    <script>
        hwplayerloaded(function () {
            var player = new HWPlayer("test", {
                width: 480,
                height: 300,
                controls: true
            }, function () {
                //播放器加载完成执行的逻辑
            });
            player.src({
                src: "https://2938.cdn-vod.huaweicloud.com/asset/6e0ab90d33c12ffaef1173e0d97e13f9/play_video/c1c804152af8b8c181af9c810610ec7b.m3u8",
                type: "application/x-mpegURL"
            });
        });
    </script>
    </body>
</html>